package com.yantong;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
// 扫描 mybatis 通用 mapper 所在的包
@MapperScan(basePackages = "com.yantong.mapper")
// 扫描所有包以及相关组件包
//@ComponentScan(basePackages = {"com.yantong"})
@ServletComponentScan("com.yantong.aspect")
public class Application {


    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }
}
